<template>
  <div class="errorCon">
    <div v-if="error.statusCode === 404">您搜索的页面不在这个星球上-_-!</div>
    <div v-else>服务器繁忙，请刷新重试</div>

    <a class="goIndex" href="/" v-if="error.statusCode === 404">返回首页</a>
  </div>
</template>

<script>
  export default {
    name: "error",
    props: ['error']
  }
</script>

<style scoped lang="scss">
  .errorCon{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;

    .goIndex{
      margin-top: 30px;
      background-color: #467cff;
      color: #fff;
      padding: 10px 20px;
      font-size: 14px;
      border-radius: 100px;
    }
  }
</style>
